import Http from '@/common/http';
import CONSTS from '@/common/consts.js'
// 手机号验证
export const verificationPhone = params => Http.send('get', 'prod-api/system/user/getUserByPhone', params);
// 登录
export const login_api = params => Http.send('post', 'prod-api/sms/login', params);
// 手机号code
export const getPhoneCode = params => Http.send('get', 'prod-api/common/sms', params);
// 写日报
export const setDailyWrite = params => Http.send('post', 'prod-api/daily/manage/saveDaily', params);
// 日报列表
export const getDailyList = params => Http.send('get', 'prod-api/daily/manage/listPage', params);

// 编辑日报
export const setEditDaily = params => Http.send('post', 'prod-api/daily/manage/editDaily', params);
// 根据id查询日报（传日报id）
export const getDetailById = params => Http.send('get', 'prod-api/daily/manage/detailById', params);
// 获取人物列表
export const getUserList = params => Http.send('get', 'prod-api/daily/manage/selectViewByUserId', params);
// 领导查看日报
export const getSelectDailyByUserId = params => Http.send('get', 'prod-api/daily/manage/selectDailyByUserId', params);
// 文书写日报
export const getDocumentDailyList = params => Http.send('get', 'prod-api/daily/manage/listPage', params);
// 统计
export const getSummaryData = params => Http.send('get', 'prod-api/daily/manage/statistical', params);

// 领导编辑的时候查询
export const getLeaderDailyData = params => Http.send('get', 'prod-api/daily/manage/goEditDaily', params);
// 汇总人物列表
export const getUserListData = params => Http.send('get', 'prod-api/system/user/list', params);
// 汇总的时候查列表
export const getSummaryListData = params => Http.send('get', 'prod-api/daily/manage/summaryList', params);
// 倒计时时间
export const getDetailSysEndTime = params => Http.send('get', 'prod-api/systemSet/manage/detailSysEndTime');
// 消息提醒
export const getMessageListData = params => Http.send('get', 'prod-api/daily/manage/messageList', params);
// 保存消息
export const setMessageData = params => Http.send('get', 'prod-api/daily/manage/saveSysMessage', params);
export const getDailyByData = params => Http.send('get', 'prod-api/daily/manage/getDailyBy', params);

// 查询部门列表
export const getdepartmentList = params => Http.send('get', 'prod-api/department/manage/getList', params);

// 查询文书关联人物列表
export const getSelectLeadersList = params => Http.send('get', 'prod-api/daily/manage/selectLeaders', params);
export const setOpenIdFun = params => Http.send('get', 'prod-api/daily/manage/getOpenId', params);
export const updateOpenIdFun = params => Http.send('get', 'prod-api/daily/manage/updateOpenId', params);
export const getClerkSelectDailyList = params => Http.send('get', 'prod-api/daily/manage/clerkSelectDaily', params);
// 看领导自己有没有写
export const getDailyByClerkFun = params => Http.send('get', 'prod-api/daily/manage/getDailyByClerk', params);
// 查询改日报列表selectTransferDaily
export const getSelectTransferDailyFun = params => Http.send('get', 'prod-api/daily/manage/selectTransferDaily', params);
// 领导转文书
export const checkTransferedDailyFun = params => Http.send('get', 'prod-api/daily/manage/checkTransfered', params);
// 领导查看其他人日报列表
export const selectOtherDailyByUserIdFun = params => Http.send('get', 'prod-api/daily/manage/selectOtherDaily', params);
// 领导消息提醒界面
export const selectSysMessageByUserIdFun = params => Http.send('get', 'prod-api/daily/manage/selectSysMessageByUserId', params);
export const selectLeadersFun = params => Http.send('get', 'prod-api/daily/manage/selectLeaders', params);
// 领导点击查询某条日报
export const detailByIdFun = params => Http.send('get', 'prod-api/daily/manage/detailById', params);
// 更新消息
export const updateMessagesFun = params => Http.send('get', 'prod-api/daily/manage/updateMessages', params);
// 汇总看日报
export const viewDailyListFun = params => Http.send('get', 'prod-api/daily/manage/viewDailyList', params);
// 汇总列表
export const selectMonthFun = params => Http.send('get', 'prod-api/daily/manage/selectMonth', params);

export const setexportData = params => Http.send('get', 'prod-api/daily/manage/exportData', params);
//查全厅的信息
export const selectViewAllDaily = params => Http.send('get', 'prod-api/daily/manage/selectViewAllDaily', params);
//倒计时状态
export const countdown = params => Http.send('get', 'prod-api/daily/manage/countdown', params);
//拿第几期
export const getPhase = params => Http.send('get', 'prod-api/daily/manage/calculateDailyCycle', params);
//拿到领导的姓名和内容
export const getWriteDetail = params => Http.send('get', 'prod-api/daily/manage/getUserContent', params);
export const deleteById = (id) => Http.send('delete', 'prod-api/daily/manage/deleteById/'+id);

